home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 7684 / 7684.xpi / chrome / firefm.jar / content / fmPreferencesWindow.xul < prev    next >
Extensible Markup Language  |  2009-11-19  |  13KB  |  279 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.   - Copyright (c) 2008, Jose Enrique Bolanos, Jorge Villalobos
  5.   - All rights reserved.
  6.   -
  7.   - Redistribution and use in source and binary forms, with or without
  8.   - modification, are permitted provided that the following conditions are met:
  9.   -
  10.   -  * Redistributions of source code must retain the above copyright notice,
  11.   -    this list of conditions and the following disclaimer.
  12.   -  * Redistributions in binary form must reproduce the above copyright notice,
  13.   -    this list of conditions and the following disclaimer in the documentation
  14.   -    and/or other materials provided with the distribution.
  15.   -  * Neither the name of Jose Enrique Bolanos, Jorge Villalobos nor the names
  16.   -    of its contributors may be used to endorse or promote products derived
  17.   -    from this software without specific prior written permission.
  18.   -
  19.   - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20.   - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21.   - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22.   - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  23.   - OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24.   - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  25.   - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26.   - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27.   - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  28.   - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29.   - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30.   -->
  31.  
  32. <?xml-stylesheet type="text/css" href="chrome://global/skin/" ?>
  33. <?xml-stylesheet type="text/css"
  34.   href="chrome://browser/skin/preferences/preferences.css" ?>
  35. <?xml-stylesheet type="text/css"
  36.   href="chrome://firefm-os/skin/fmPreferencesWindow.css" ?>
  37.  
  38. <!DOCTYPE prefwindow [
  39.   <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  40.   %brandDTD;
  41.   <!ENTITY % fmOverlayDTD SYSTEM "chrome://firefm/locale/fmBrowserOverlay.dtd">
  42.   %fmOverlayDTD;
  43.   <!ENTITY % fmPrefDTD SYSTEM "chrome://firefm/locale/fmPreferencesWindow.dtd">
  44.   %fmPrefDTD;
  45. ]>
  46.  
  47. <prefwindow id="firefm-preferences-window"
  48.   buttons="accept, cancel"
  49.   ondialogaccept="FireFMChrome.PreferencesWindow.accept(event);"
  50.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  51.  
  52.   <script type="application/javascript"
  53.     src="chrome://global/content/contentAreaUtils.js" />
  54.   <script type="application/x-javascript"
  55.     src="chrome://firefm/content/fmPreferencesWindow.js" />
  56.  
  57.   <broadcasterset id="firefm-preference-broadcasterset">
  58.     <broadcaster id="firefm-statusbar-broadcaster" />
  59.   </broadcasterset>
  60.  
  61.   <prefpane id="firefm-main-pane"
  62.     label="&firefm.preferences.pane.main.title;">
  63.     <preferences>
  64.       <preference id="firefm-preference-autoplay"
  65.         name="extensions.firefm.autoplay" type="bool" />
  66.       <preference id="firefm-preference-scrobble"
  67.         name="extensions.firefm.scrobble" type="bool" />
  68.       <preference id="firefm-preference-store-history"
  69.         name="extensions.firefm.storeHistory" type="bool" />
  70.       <preference id="firefm-preference-recent-history"
  71.         name="extensions.firefm.recent.enabled" type="bool" />
  72.       <preference id="firefm-preference-enable-private-mode"
  73.         name="extensions.firefm.enablePrivateMode" type="bool" />
  74.       <preference id="firefm-preference-notifications-mode"
  75.         name="extensions.firefm.notifications.mode" type="int" />
  76.       <preference id="firefm-preference-volume-mode"
  77.         name="extensions.firefm.volume.mode" type="int" />
  78.     </preferences>
  79.  
  80.     <groupbox>
  81.       <caption label="&firefm.preferences.playback.label;" />
  82.       <checkbox preference="firefm-preference-autoplay"
  83.         label="&firefm.preferences.autoplay.label;"
  84.         accesskey="&firefm.preferences.autoplay.accesskey;" />
  85.       <hbox class="firefm-preference-row">
  86.         <checkbox preference="firefm-preference-scrobble"
  87.           label="&firefm.preferences.scrobble.label;"
  88.           accesskey="&firefm.preferences.scrobble.accesskey;" />
  89.         <label class="text-link" value="&firefm.preferences.learnMore.label;"
  90.           accesskey="&firefm.preferences.learnMore.accesskey;"
  91.           onclick="FireFMChrome.PreferencesWindow.openScrobblePage(event);" />
  92.       </hbox>
  93.       <hbox class="firefm-preference-row">
  94.         <label control="firefm-pref-volume-mode"
  95.           value="&firefm.preferences.volume.mode.label;"
  96.           accesskey="&firefm.preferences.volume.mode.accesskey;" />
  97.         <menulist id="firefm-pref-volume-mode"
  98.           preference="firefm-preference-volume-mode"
  99.           value="&firefm.preferences.volume.mode.label;">
  100.           <menupopup>
  101.             <menuitem value="0"
  102.               label="&firefm.preferences.volume.mode.simple;" />
  103.             <menuitem value="1"
  104.               label="&firefm.preferences.volume.mode.advanced;" />
  105.           </menupopup>
  106.         </menulist>
  107.       </hbox>
  108.  
  109.     </groupbox>
  110.  
  111.     <groupbox>
  112.       <caption label="&firefm.preferences.history.label;" />
  113.       <hbox>
  114.         <checkbox preference="firefm-preference-store-history"
  115.           label="&firefm.preferences.storeArtists.label;"
  116.           accesskey="&firefm.preferences.storeArtists.accesskey;" />
  117.         <spacer flex="1" />
  118.         <button label="&firefm.preferences.clearPlaces.label;"
  119.           accesskey="&firefm.preferences.clearPlaces.accesskey;"
  120.           oncommand="FireFMChrome.PreferencesWindow.clearPlacesHistory(event)"/>
  121.       </hbox>
  122.       <hbox>
  123.         <checkbox preference="firefm-preference-recent-history"
  124.           label="&firefm.preferences.recentHistory.label;"
  125.           accesskey="&firefm.preferences.recentHistory.accesskey;" />
  126.         <spacer flex="1" />
  127.         <button id="firefm-pref-clear-recent"
  128.           label="&firefm.preferences.clearRecent.label;"
  129.           accesskey="&firefm.preferences.clearRecent.accesskey;"
  130.           oncommand=
  131.             "FireFMChrome.PreferencesWindow.clearRecentHistory(event);" />
  132.       </hbox>
  133.       <checkbox preference="firefm-preference-enable-private-mode"
  134.         label="&firefm.preferences.enablePrivateMode.label;"
  135.         accesskey="&firefm.preferences.enablePrivateMode.accesskey;" />
  136.     </groupbox>
  137.  
  138.     <groupbox>
  139.       <caption label="&firefm.preferences.notifications.title;" />
  140.       <grid>
  141.         <columns>
  142.           <column/>
  143.           <column/>
  144.         </columns>
  145.         <rows>
  146.           <row align="center">
  147.             <label control="firefm-pref-notifications"
  148.               value="&firefm.preferences.notifications.mode.label;"
  149.               accesskey="&firefm.preferences.notifications.mode.accesskey;" />
  150.             <menulist id="firefm-pref-notifications"
  151.               preference="firefm-preference-notifications-mode"
  152.               value="&firefm.preferences.notifications.mode.label;">
  153.               <menupopup>
  154.                 <menuitem value="0"
  155.                   label="&firefm.preferences.notifications.mode.off;" />
  156.                 <menuitem value="2"
  157.                   label="&firefm.preferences.notifications.mode.focus;" />
  158.                 <menuitem value="1"
  159.                   label="&firefm.preferences.notifications.mode.on;" />
  160.               </menupopup>
  161.             </menulist>
  162.           </row>
  163.         </rows>
  164.       </grid>
  165.     </groupbox>
  166.   </prefpane>
  167.  
  168.   <prefpane id="firefm-appearance-pane"
  169.     label="&firefm.preferences.pane.appearance.title;">
  170.     <preferences>
  171.       <preference id="firefm-preference-show-statusbar"
  172.         name="extensions.firefm.showInStatusBar" type="bool"
  173.         onchange="FireFMChrome.PreferencesWindow.toggleStatusChecks(event);" />
  174.       <preference id="firefm-preference-statusbar-buttons"
  175.         name="extensions.firefm.statusBarButtons" type="string"
  176.         onchange=
  177.           "FireFMChrome.PreferencesWindow.updateStatusbarChecks(event);" />
  178.     </preferences>
  179.     <groupbox>
  180.       <checkbox id="firefm-show-toolbar"
  181.         label="&firefm.preferences.showToolbar.label;"
  182.         accesskey="&firefm.preferences.showToolbar.accesskey;"
  183.         oncommand="FireFMChrome.PreferencesWindow.toggleToolbar(event);" />
  184.       <checkbox preference="firefm-preference-show-statusbar"
  185.         label="&firefm.preferences.showStatusbar.label;"
  186.         accesskey="&firefm.preferences.showStatusbar.accesskey;" />
  187.       <vbox id="firefm-status-check-container" class="indent">
  188.         <checkbox id="firefm-status-home-button"
  189.           label="&firefm.home.label;" accesskey="&firefm.home.accesskey;"
  190.           observes="firefm-statusbar-broadcaster"
  191.           oncommand=
  192.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  193.         <checkbox id="firefm-status-login-logout-button"
  194.           label="&firefm.login.label;" accesskey="&firefm.login.accesskey;"
  195.           observes="firefm-statusbar-broadcaster"
  196.           oncommand=
  197.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  198.         <checkbox id="firefm-status-station-button"
  199.           label="&firefm.station.label;" accesskey="&firefm.station.accesskey;"
  200.           observes="firefm-statusbar-broadcaster"
  201.           oncommand=
  202.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  203.         <checkbox id="firefm-status-play-stop-button"
  204.           label="&firefm.preferences.status.play.label;"
  205.           accesskey="&firefm.preferences.status.play.accesskey;"
  206.           observes="firefm-statusbar-broadcaster"
  207.           oncommand=
  208.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  209.         <checkbox id="firefm-status-skip-button"
  210.           label="&firefm.skip.label;" accesskey="&firefm.skip.accesskey;"
  211.           observes="firefm-statusbar-broadcaster"
  212.           oncommand=
  213.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  214.         <checkbox id="firefm-status-track-info"
  215.           label="&firefm.nowPlaying.label;"
  216.           accesskey="&firefm.nowPlaying.accesskey;"
  217.           observes="firefm-statusbar-broadcaster"
  218.           oncommand=
  219.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  220.         <checkbox id="firefm-status-track-info-size" class="indent"
  221.           label="&firefm.preferences.smallSize.label;"
  222.           accesskey="&firefm.preferences.smallSize.accesskey;"
  223.           observes="firefm-statusbar-broadcaster"
  224.           oncommand=
  225.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  226.         <checkbox id="firefm-status-volume-button"
  227.           label="&firefm.volume.label;" accesskey="&firefm.volume.accesskey;"
  228.           observes="firefm-statusbar-broadcaster"
  229.           oncommand=
  230.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  231.         <!--<checkbox id="firefm-status-share-button"
  232.           label="&firefm.share.label;" accesskey="&firefm.share.accesskey;"
  233.           observes="firefm-statusbar-broadcaster"
  234.           oncommand=
  235.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />-->
  236.         <checkbox id="firefm-status-tag-button"
  237.           label="&firefm.tag.label;" accesskey="&firefm.tag.accesskey;"
  238.           observes="firefm-statusbar-broadcaster"
  239.           oncommand=
  240.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  241.         <checkbox id="firefm-status-love-button"
  242.           label="&firefm.love.label;" accesskey="&firefm.love.accesskey;"
  243.           observes="firefm-statusbar-broadcaster"
  244.           oncommand=
  245.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  246.         <checkbox id="firefm-status-ban-button"
  247.           label="&firefm.ban.label;" accesskey="&firefm.ban.accesskey;"
  248.           observes="firefm-statusbar-broadcaster"
  249.           oncommand=
  250.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  251.         <checkbox id="firefm-status-video-button"
  252.           label="&firefm.video.label;" accesskey="&firefm.video.accesskey;"
  253.           observes="firefm-statusbar-broadcaster"
  254.           oncommand=
  255.             "FireFMChrome.PreferencesWindow.customizeStatusbar(event);" />
  256.       </vbox>
  257.     </groupbox>
  258.   </prefpane>
  259.  
  260.   <prefpane id="firefm-advanced-pane"
  261.     label="&firefm.preferences.pane.advanced.title;">
  262.     <preferences>
  263.       <preference id="firefm-preference-use-gestures"
  264.         name="extensions.firefm.useGestures" type="bool" />
  265.     </preferences>
  266.  
  267.     <groupbox>
  268.       <hbox class="firefm-preference-row">
  269.         <checkbox preference="firefm-preference-use-gestures"
  270.           label="&firefm.preferences.enableGestures.label;"
  271.           accesskey="&firefm.preferences.enableGestures.accesskey;" />
  272.         <label class="text-link" value="&firefm.preferences.learnMore.label;"
  273.           accesskey="&firefm.preferences.learnMore.accesskey;"
  274.           onclick="FireFMChrome.PreferencesWindow.openGesturesPage(event);" />
  275.       </hbox>
  276.     </groupbox>
  277.   </prefpane>
  278. </prefwindow>
  279.